package com.sinven.service;

import com.sinven.mapper.CategoryMapper;
import com.sinven.pojo.Category;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CategoryServiceImpl implements CategoryService {
    @Autowired
    private CategoryMapper categoryMapper;
    @Override
    public Category queryCategoryByCode(String code) {
        return categoryMapper.queryCategoryByCode(code);
    }

    @Override
    public Category queryCategoryById(int id) {
        return categoryMapper.queryCategoryById(id);
    }
}
